<%@ Page Language="C#" MasterPageFile="~/SFMaster.master" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="News_default"  %>

<%@ Register Src="/UserControls/uctNewsArchive.ascx" TagName="uctNewsArchive" TagPrefix="uc1" %>
<%@ Register Assembly="WebControls" Namespace="WebControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderMain" Runat="Server">
<table width=100%>
    <cc1:SFRepeater ID="sfrNews" runat="server" OnNeedsDataSource="sfrNews_NeedsDataSource">
        <ItemTemplate>
            <tr>
                <td>
                    <%#Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "InsertDate")).ToShortDateString()%> - <%#DataBinder.Eval(Container.DataItem, "NewsTitle")%>
                </td>
            </tr>
            <tr>
                <td>
                <asp:Label ID=lblInnerText runat=server Text='<%#DataBinder.Eval(Container.DataItem, "NewsSummary")%>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td class=panelMainShowAll>
                    
                
                   <a id="A1" runat="server" href='<%#GenerateUrl(DataBinder.Eval(Container.DataItem, "NewsId")) %>'><cc1:SFLabel ID="lblNewsDetail" runat=server IsMasterPageControl=true></cc1:SFLabel></a>
                </td>
            </tr>
        </ItemTemplate>
<SeparatorTemplate>
    <tr><td><hr /></td></tr>                
</SeparatorTemplate>
    </cc1:SFRepeater>
</table>
  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderEdit" Runat="Server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderArchive" Runat="Server">
  <uc1:uctNewsArchive id="UctNewsArchive1" runat="server">
    </uc1:uctNewsArchive>
</asp:Content>

